package com.bawei.jetpackdemo.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import androidx.annotation.Nullable;
import androidx.lifecycle.LifecycleService;

/**
 * @Author : yaotianxue
 * @Time : On 2023/9/11 10:11
 * @Description : LocationService 服务
 */
public class LocationService extends LifecycleService {
    public LocationService() {
        //注册观察者
        MyLocationObserver myLocationObserver = new MyLocationObserver(this);
        getLifecycle().addObserver(myLocationObserver);
    }
}
